# -*- coding: utf-8 -*-
# @Time: 2021/11/5 21:13
# @Author: jiuwu
# @Email: 2359196586@qq.com
# @File: urls.py
# @Software: PyCharm
from django.urls import path
from rest_framework.routers import DefaultRouter
from .views import ClassesViewSet, ClassesMemberViewSet

urlpatterns = [
    path('classes/<pk>/students/',ClassesMemberViewSet.as_view({'post': 'add_member'}))
]

router = DefaultRouter()
router.register('classes', ClassesViewSet)
urlpatterns += router.urls
